
cd %~dp0
echo cd >> bat.log
echo -------------------- >> bat.log
echo vnc.bat begin >> bat.log
echo -------------------- >> bat.log
date /t >> bat.log
time /t >> bat.log
cd >> bat.log

rem do something here.

echo set reg >> bat.log
reg add "HKEY_CURRENT_USER\Software\ORL\WinVNC3" /f /v Password /t reg_binary /d 4580acfa1056bb02
reg add "HKEY_CURRENT_USER\Software\ORL\WinVNC3" /f /v PollFullScreen /t reg_dword /d 0
reg add "HKEY_CURRENT_USER\Software\ORL\WinVNC3" /f /v PollForeground /t reg_dword /d 1

echo run winvnc -run >> bat.log
start vnc\winvnc -run
>nil ping -n 2 127.0.0.1

echo test winvnc -connect >> bat.log
rem start vnc\winvnc -connect 15a560796m.iok.la
rem start vnc\winvnc -connect 15a560796m.iok.la



echo -------------------- >> bat.log
echo vnc.bat end >> bat.log
echo -------------------- >> bat.log
